#ifndef myvpn_syslib_h
#define myvpn_syslib_h

#include "Const.h"

#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <time.h>
#include <stdlib.h>
#include <stdbool.h>
#include <ctype.h>

#ifdef OS_WIN

#include <winsock2.h>
#include <windows.h>
#include <Setupapi.h>
typedef unsigned short uint16_t;
typedef short int16_t;
#define bzero ZeroMemory
#define random rand
#else
#include <netinet/tcp.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <net/if.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <pthread.h>
#include <errno.h>
#include <netdb.h>
#define INVALID_SOCKET -1
#define SOCKET_ERROR -1

#endif

#ifdef OS_LINUX
#include <linux/if_tun.h>
#endif

#endif
